import request from '@/utils/request'
const head = '/business';
const head2 = '/projectType';
const head3 = '​/elementTypeType';
import headApi from '@/utils/hade';
//项目管理-项目列表
export function listAPI(param) {
  return request({
    url:headApi+ head + `/project/list`,
    method: 'get',
    params: param
  })
}
// 项目管理-项目列表添加-获取项目类型列表  addItem1
export function statelistAPI(param) {
  return request({
    url:headApi+ head2 + `/select`,
    method: 'post',
    data:param
  })
}






// 项目管理-添加项目  addItem1
export function addlistAPI(param) {
  return request({
    url:headApi+ head + `/project/add`,
    method: 'post',
    data:param
  })
}
// 项目管理-获取项目  editindex
export function geteditindex(param) {
  return request({
    url:headApi+ head + `/project/${param}`,
    method: 'get'
  })
}
// 项目管理-编辑项目  editindex
export function editindex(param) {
  return request({
    url:headApi+ head + `/project`,
    method: 'put',
    data:param
  })
}
// 项目管理-权限  jurisdiction
export function selectByProId(param) {
  return request({
    url:headApi+ head + `/auth/selectByProId`,
    method: 'get',
    params:param
  })
}
// 项目管理-权限-获取用户组列表 jurisdiction
export function selectByUG(param) {
  return request({
    url:headApi+ head + `/auth/selectByUG`,
    method: 'get',
    params:param
  })
}
// 项目管理-权限-提交 jurisdiction
export function editAuthAPI(param) {
  return request({
    url:headApi+ head + `/auth`,
    method: 'put',
    data:param
  })
}
// 项目管理-码设置-获取添加的按钮 
export function selectAPI(param) {
  return request({
    url:headApi+ `/elementTypeType/select`,
    method: 'post',
    data:param
  })
}
// 项目管理-码设置-获取拖拽元素的属性 
export function attribute(param) {
  return request({
    url:headApi+ `/propertyType/select`,
    method: 'post',
    data:param
  })
}
// 项目管理-码设置-最后提交
export function addinsert(param) {
  return request({
    url:headApi+ `/configInfo/insert`,
    method: 'post',
    data:param
  })
}
// 项目管理-码设置-提交按钮的修改接口
export function editinsert(param) {
  return request({
    url:headApi+ `/configInfo/update`,
    method: 'post',
    data:param
  })
}
// 项目管理-码设置-更多
export function moreAPI(param) {
  return request({
    url:headApi+ `/configType/select`,
    method: 'post',
    data:param
  })
}
// 项目管理-码设置-获取提交后的内容
export function geteditAPI(param) {
  return request({
    url:headApi+ `/configInfo/select`,
    method: 'post',
    data:param
  })
}
// 项目管理-数据页面-获取码设置的表格-tenantData
export function selectByCodeCondition(param) {
  return request({
    url:headApi+ `/business/code/selectByCodeCondition`,
    method: 'get',
    params:param
  })
}
// 项目管理-数据页面-获取码新增-tenantData
export function userNewCode(param) {
  return request({
    url:headApi+ `/business/code/userNewCode`,
    method: 'get',
    params:param
  })
}
// 项目管理-数据页面-单条回收-tenantData
export function tenantByRecovery(param) {
  return request({
    url:headApi+ `/business/code/tenantByRecovery`,
    method: 'post',
    data:param
  })
}
// 项目管理-数据页面-单条划拨-tenantData
export function userTransfer(param) {
  return request({
    url:headApi+ `/business/code/userTransfer`,
    method: 'post',
    data:param
  })
}
// 项目管理-数据页面-单条划拨-tenantData
export function deleteByIds(param) {
  return request({
    url:headApi+ `/business/code/deleteByIds`,
    method: 'post',
    data:param
  })
}
// 项目管理-数据管理-查询发布前-tenantIdentification
export function desensitizationAPI(param) {
  return request({
    url:headApi+ `/business/desensitization/select`,
    method: 'get',
    params:param
  })
}
// 项目管理-数据-码设置-下载模板 tenantData
export function downLoadFormwork(param) {
  return request({
    url:headApi+ `/codeMould/downLoadFormwork`,
    method: 'get',
    responseType: 'blob',
    params:param
  })
}
// 项目管理-数据-码设置-批量划拨/回收下载模板 tenantData
export function transferFormwork(param) {
  return request({
    url:headApi+ `/codeMould/transferFormwork`,
    method: 'get',
    responseType: 'blob',
    params:param
  })
}
// 项目管理-数据-码设置-批量划拨/回收上传 tenantData
export function uploadtransfer(param) {
  return request({
    url:headApi+ `/codeMould/uploadtransfer`,
    method: 'post',
    data:param
  })
}
// 项目管理-数据-码设置-上传码 tenantData
export function uploadCode(param) {
  return request({
    url:headApi+ `/codeMould/uploadCode`,
    method: 'post',
    data:param
  })
}


// 数据管理-脱敏数据-上传 tenantIdentification
export function uploadlaxisDate(param) {
  return request({
    url:headApi+ `/codeMould/uploadAntianaphylaxisDate`,  
    method: 'post',
    Expect:"100-continue",
    data:param
  })
}
// 数据管理-汇总数据-上传 tenantIdentification
export function hzuploadlDate(param) {
  return request({
    url:headApi+ `/codeMould/uploadDate`,  
    method: 'post',
    data:param
  })
}

// 数据-除了码设置以外的表格参数获取- tenantData
export function dateConditionQueryList(param) {
  return request({
    url:headApi+ `/dateConditionQuery/dateConditionQueryList`,
    method: 'get',
    params:param
  })
}
// 数据管理-脱敏数据-转汇总- tenantIdentification
export function totalTransfer(param) {
  return request({
    url:headApi+ `/business/desensitization/totalTransfer`,
    method: 'post',
    data:param
  })
}
// 数据管理-脱敏数据-发布- tenantIdentification
export function release(param) {
  return request({
    url:headApi+ `/business/desensitization/release`,
    method: 'get',
    params:param
  })
}
// 项目列表-用户- projectlist
export function proUserList(param) {
  return request({
    url:headApi+ `/business/project/proUserList`,
    method: 'get',
    params:param
  })
}
// 项目列表-启用和禁用- projectlist
export function Enableforbidden(param) {
  return request({
    url:headApi+ `/business/project`,
    method: 'put',
    data:param
  })
}
// 项目列表-汇总项目-数据管理-汇总 tenantIdentification
export function totalTransferSum(param) {
  return request({
    url:headApi+ `/business/desensitization/totalTransferSum`,
    method: 'post',
    data:param
  })
}
// 项目列表-佣金模板-列表分页 Commission
export function selectPaging(param) {
  return request({
    url:headApi+ `/commissionTemplate/selectPaging`,
    method: 'post',
    data:param
  })
}
// 项目列表-佣金模板-开启佣金模板 Commission
export function enabledLevel(param) {
  return request({
    url:headApi+ `/commissionTemplateDetails/enabledLevel`,
    method: 'get',
    params:param
  })
}
// 项目列表-佣金模板-关闭佣金模板 Commission
export function disabledLevel(param) {
  return request({
    url:headApi+ `/commissionTemplateDetails/disabledLevel`,
    method: 'get',
    data:param
  })
}
// 项目列表-佣金模板-关闭佣金模板-设置-新增提交 settlementMoney
export function insertLevel(param) {
  return request({
    url:headApi+ `/commissionTemplateDetails/insertLevel`,
    method: 'put',
    data:param
  })
}
// 项目列表-佣金模板-关闭佣金模板-设置-修改提交 settlementMoney
export function updateLevel(param) {
  return request({
    url:headApi+ `/commissionTemplateDetails/updateLevel`,
    method: 'put',
    data:param
  })
}
// 项目列表-佣金模板-关闭佣金模板-设置-查询 settlementMoney
export function selectByOne(param) {
  return request({
    url:headApi+ `/commissionTemplateDetails/selectByOne`,
    method: 'post',
    data:param
  })
}

// 项目列表-佣金模板-新增模板 TemplateDetails
export function addTemplate(param) {
  return request({
    url:headApi+ `/commissionTemplate/insert`,
    method: 'put',
    data:param
  })
}
// 项目列表-佣金模板-删除 TemplateDetails
export function deleteTemplate(param) {
  return request({
    url:headApi+ `/commissionTemplate/delete/${param}`,
    method: 'delete',
  })
}
// 佣金模板-更新- 默认佣金模板开关 
export function CommissionUpdate(param) {
  return request({
    url:headApi+ `/commissionTemplate/update`,
    method: 'put',
    data:param
  })
}
// 项目列表-结算-新增 
export function addSettlement(param) {
  return request({
    url:headApi+ `/settleList/insert`,
    method: 'put',
    data:param
  })
}

// 项目列表-结算设置-获取结算依据 settlementSetup
export function getBasis(param) {
  return request({
    url:headApi+ `/configInfo/selectList`,
    method: 'post',
    data:param
  })
}
// 项目列表-结算设置-获取结算依据 settlementSetup
export function addBasis(param) {
  return request({
    url:headApi+ `/projectSettle/insert`,
    method: 'put',
    data:param
  })
}
// 项目列表-结算设置-获取结算列表 settlementSetup
export function getBasisList(param) {
  return request({
    url:headApi+ `/projectSettle/select`,
    method: 'post',
    data:param
  })
}
// 项目列表-结算设置-获取结算列表 settlementSetup
export function delBasisList(param) {
  return request({
    url:headApi+ `/projectSettle/delete/${param}`,
    method: 'DELETE',
  })
}
// 项目列表-结算设置-修改 settlementSetup
export function modifyBasisList(param) {
  return request({
    url:headApi+ `/projectSettle/update`,
    method: 'put',
    data:param
  })
}
// 项目列表-结算-新增结算列表 BillingDetails
export function addSettlementList(param) {
  return request({
    url:headApi+ `/settleList/insert`,
    method: 'put',
    data:param
  })
}
// 项目列表-结算-获取结算列表 BillingDetails
export function getSettlementList(param) {
  return request({
    url:headApi+ `/settleList/selectPaging`,
    method: 'post',
    data:param
  })
}
// 项目列表-结算-获取结算详情列表 BillingDetails
export function getSettlementMiniList(param) {
  return request({
    url:headApi+ `/settleInfo/selectPaging`,
    method: 'post',
    data:param
  })
}
// 项目列表-结算-结算更新 BillingDetails
export function getSettlementUpdate(param) {
  return request({
    url:headApi+ `/settleList/updateSettleData/${param}`,
    method: 'get',
  })
}
// 项目列表-结算-详情结算按钮 BillingDetails
export function settlementBotton(param) {
  return request({
    url:headApi+ `/settleList/settle/${param}`,
    method: 'get',
  })
}
// 项目列表-结算-详情撤销结算按钮 BillingDetails
export function withdrawSettlement(param) {
  return request({
    url:headApi+ `/settleList/withdrawSettlement/${param}`,
    method: 'get',
  })
}
// 项目列表-结算-详情取消结算按钮 BillingDetails
export function cancelSettlement(param) {
  return request({
    url:headApi+ `/settleInfo/update`,
    method: 'put',
    data:param
  })
}
// 项目列表-佣金模板-里面的修改-模板详情页面 TemplateDetails
export function addDetails(param) {
  return request({
    url:headApi+ `/commissionTemplateDetails/insert`,
    method: 'put',
    data:param
  })
}
// 项目列表-佣金模板-里面的修改-获取模板详情页面 TemplateDetails
export function getDetails(param) {
  return request({
    url:headApi+ `/commissionTemplateDetails/select`,
    method: 'post',
    data:param
  })
}
// 项目列表-佣金模板-里面的修改-新增金额 TemplateDetails
export function addMoney(param) {
  return request({
    url:headApi+ `/commissionTemplateDetails/insert`,
    method: 'put',
    data:param
  })
}
// 项目列表-佣金模板-里面的修改-修改金额 TemplateDetails
export function modifyMoney(param) {
  return request({
    url:headApi+ `/commissionTemplateDetails/update`,
    method: 'put',
    data:param
  })
}
// 项目列表-佣金模板-查询列表 TemplateDetails
export function getTemplateDetails(param) {
  return request({
    url:headApi+ `/commissionTemplateDetails/getTemplateDetails`,
    method: 'get',
    params:param
  })
}

// 项目列表-数据展示-所有导出 tenantData
export function exportButton(param) {
  return request({
    url:headApi+ `/dateConditionQuery/uplode`,
    method: 'get',
    responseType: 'blob',
    params:param
  })
}
// 项目列表-数据展示-码设置导出 tenantData
export function mszexportButton(param) {
  return request({
    url:headApi+ `/dateConditionQuery/uplodeCode`,
    method: 'get',
    responseType: 'blob',
    params:param
  })
}
// 项目列表-数据展示-码设置编辑 tenantData
export function updateByIdName(param) {
  return request({
    url:headApi+ `/business/code/updateByIdName`,
    method: 'get',
    params:param
  })
}
// 项目列表-数据展示-脱敏汇总是否统计获取 tenantData
export function selectSumByKey(param) {
  return request({
    url:headApi+ `/dateConditionQuery/selectSumByKey`,
    method: 'get',
    params:param
  })
}

// 项目列表-上传数据-数据明细和汇总数据的编辑
export function updateDataById(param) {
  return request({
    url:headApi+ `/business/desensitization/updateDataById`,
    method: 'get',
    params:param
  })
}
// 项目列表-奖励模板-新增奖励
export function insertRewardTemplate(param) {
  return request({
    url:headApi+ `/projectSettle/insertRewardTemplate`,
    method: 'post',
    data:param
  })
}
// 项目列表-奖励模板-编辑奖励
export function editRewardTemplate(param) {
  return request({
    url:headApi+ `/projectSettle/editRewardTemplate`,
    method: 'post',
    data:param
  })
}
// 项目列表-奖励模板-查询奖励规则
export function RewardRules(param) {
  return request({
    url:headApi+ `/projectSettle/selectRewardTemplate/${param}`,
    method: 'get',
  })
}
// 项目列表-奖励模板-查询奖励模板
export function selectRewardTemplates(param) {
  return request({
    url:headApi+ `/projectSettle/selectRewardTemplates`,
    method: 'post',
    data:param
  })
}
// 项目列表-奖励模板-更新奖励模板
export function updateRewardData(param) {
  return request({
    url:headApi+ `/projectSettle/updateRewardData`,
    method: 'get',
    params:param
  })
}
// 项目列表-奖励模板-查看奖励信息列表
export function selectRewardInfos(param) {
  return request({
    url:headApi+ `/projectSettle/selectRewardInfos`,
    method: 'post',
    data:param
  })
}
// 项目列表-奖励模板-奖励信息列表-奖励信息记录
export function selectRewardInfoRecords(param) {
  return request({
    url:headApi+ `/projectSettle/selectRewardInfoRecords`,
    method: 'post',
    data:param
  })
}
// 项目列表-奖励模板-新增条件依据下拉
export function selectRewardByProIdAngTypeId(param) {
  return request({
    url:headApi+ `/configInfo/selectRewardByProIdAngTypeId`,
    method: 'post',
    data:param
  })
}
// 项目列表-奖励模板-新增条件依据下拉
export function executeReward(param) {
  return request({
    url:headApi+ `/projectSettle/executeReward`,
    method: 'get',
    params:param
  })
}
// 项目列表-奖励详情-先查佳宾的数据
export function selectRewardTemplatesByUser(param) {
  return request({
    url:headApi+ `/projectSettle/selectRewardTemplatesByUser`,
    method: 'post',
    data:param
  })
}